package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.UserAnswers;

/**
 * 答题记录Mapper接口
 * 
 * @author ruoyi
 * @date 2025-05-09
 */
public interface UserAnswersMapper 
{
    /**
     * 查询答题记录
     * 
     * @param recordId 答题记录主键
     * @return 答题记录
     */
    public UserAnswers selectUserAnswersByRecordId(Long recordId);

    /**
     * 查询答题记录列表
     * 
     * @param userAnswers 答题记录
     * @return 答题记录集合
     */
    public List<UserAnswers> selectUserAnswersList(UserAnswers userAnswers);

    /**
     * 新增答题记录
     * 
     * @param userAnswers 答题记录
     * @return 结果
     */
    public int insertUserAnswers(UserAnswers userAnswers);

    /**
     * 修改答题记录
     * 
     * @param userAnswers 答题记录
     * @return 结果
     */
    public int updateUserAnswers(UserAnswers userAnswers);

    /**
     * 删除答题记录
     * 
     * @param recordId 答题记录主键
     * @return 结果
     */
    public int deleteUserAnswersByRecordId(Long recordId);

    /**
     * 批量删除答题记录
     * 
     * @param recordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteUserAnswersByRecordIds(Long[] recordIds);
}
